package vip.source.pattern.part11.flyweight;

/**
 * 具体享元
 */
public class ConcreteFont implements Font {
    private String name;

    public ConcreteFont(String name) {
        this.name = name;
    }

    @Override
    public void render(String text) {
        System.out.println("Rendering text '" + text + "' with font " + name);
    }
}
